package com.opengroupe.activity;

import java.util.ArrayList;
import java.util.List;

import org.json.JSONArray;
import org.json.JSONException;

import android.app.ListActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.opengroupe.R;
import com.opengroupe.adapter.ConsulterResultatAdapter;
import com.opengroupe.dto.CandidatDto;
import com.opengroupe.webservice.WebService;

public class ConsulterResultatActivity extends ListActivity {
	

	private String response;
	private List<CandidatDto> candidatDtos;
	private String tag;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_consulter_resultat);
        
        tag = getString(R.string.log_prefix);
        
       
        this.candidatDtos = CandidatDto.getAll(this);
        

        
        
        
        ConsulterResultatAdapter candidatAdapter = new ConsulterResultatAdapter(this, R.layout.lv_candidat, candidatDtos);
        setListAdapter(candidatAdapter);
		
    }

	

	@Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_consulter_resultat, menu);
        return true;
    }
}